package com.ruoyi.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Fql18
 * @version 1.0
 * @date 2025-08-10 1:34
 * @description
 */
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/api")
public class HelloController {

	@GetMapping("/hello")
	public Map<String, String> hello() {
		Map<String, String> result = new HashMap<>();
		result.put("msg", "Hello from Spring Boot!");
		return result;
	}
}
